<?php
namespace api\user\validate;

use think\Validate;

class TransferValidate extends Validate
{
    protected $rule = [
        'transfer_num'       =>  'require|number|gt:0',
        'transfer_type'      =>  'number|between:1,2',  
        'address'            =>  'require',
        'trader_password'    =>  'require',
    ];
    protected $message = [
        'transfer_num.require'    =>  '请输入转账数值',
        'transfer_type'           =>  '转账类型不合法',
        'address.require'         =>  '请选择钱包地址',
        'trader_password.require' =>  '请输入交易密码',
    ];

}